package common;

import java.security.*;

public class Key {
	public PublicKey pubkey;
	public PrivateKey privkey;
	
	public Key(){
		try {
			KeyPair kp = KeyPairGenerator.getInstance("DES").generateKeyPair();
			pubkey = kp.getPublic();
			privkey = kp.getPrivate();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
